
// 自动生成模板Hero
package example
import (
	"github.com/flipped-aurora/gin-vue-admin/server/global"
)

// 英雄信息 结构体  Hero
type Hero struct {
    global.GVA_MODEL
    HeroName  *string `json:"heroName" form:"heroName" gorm:"column:hero_name;comment:;" binding:"required"`  //英雄名称
    HeroType  *string `json:"heroType" form:"heroType" gorm:"column:hero_type;comment:;"`  //英雄类型
    Health  *int `json:"health" form:"health" gorm:"column:health;comment:;" binding:"required"`  //生命值
    Attack  *int `json:"attack" form:"attack" gorm:"column:attack;comment:;" binding:"required"`  //攻击力
    Defense  *int `json:"defense" form:"defense" gorm:"column:defense;comment:;" binding:"required"`  //防御力
    Speed  *int `json:"speed" form:"speed" gorm:"column:speed;comment:;" binding:"required"`  //速度
    Skill1  *string `json:"skill1" form:"skill1" gorm:"column:skill1;comment:;"`  //技能1
    Skill2  *string `json:"skill2" form:"skill2" gorm:"column:skill2;comment:;"`  //技能2
    Skill3  *string `json:"skill3" form:"skill3" gorm:"column:skill3;comment:;"`  //技能3
}


// TableName 英雄信息 Hero自定义表名 heros
func (Hero) TableName() string {
    return "heros"
}





